package com.llb666.shop.items.domain.service;

import com.llb666.shop.items.domain.entity.Carousel;
import com.llb666.shop.items.domain.repository.CarouselRepository;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 轮播图.
 *
 * @author llb666
 */
@Service
@RequiredArgsConstructor(onConstructor_ = {@Autowired})
public class CarouselService {

    private final CarouselRepository carouselRepository;

    public List<Carousel> queryAll(Integer type) {
        return carouselRepository.queryAll(type);
    }
}
